<?php
namespace app\zhonghang\controller;
use think\Controller;
use think\Request;
use think\Db;
use think\Session;
use think\Cookie;
use think\Lang;

require_once (APP_PATH . 'api/RewardApi.php');
class Order extends Controller
{
    public function _initialize()
    {
        parent::_initialize();

    }

    /**
     * 联系我们
     */
    public function index()
    {
        $zifuji=Cookie::get('think_var');
        $chanpin =  DB::name('Goods_category')->where('parent_id',0)->where('is_show',1)->limit('1')->find();
        $erweima = DB::name('Website')->where('w_logo_status',1)->find();
        if($zifuji=='zh-cn'){
            $list = DB::name('Website')->where('w_id','1')->find();
            $aaa=htmlspecialchars_decode($list['w_xinxi']);
        }elseif($zifuji=='en-us'){
            $list = DB::name('Website_us')->where('w_id','1')->find();
            $aaa=htmlspecialchars_decode($list['w_xinxi']);
        }else{
            $list = DB::name('Website_jp')->where('w_id','1')->find();
            $aaa=htmlspecialchars_decode($list['w_xinxi']);
        }
        $lxwmtp=DB::name('Config')->where('name','lxwmtp')->value('value');
        $this->assign('lxwmtp',$lxwmtp);
        $lisst = Lang::get('dbcp');
        $this->assign('lisst',$lisst);
        $this->assign('list',$list);
        $this->assign('erweima',$erweima);
        $this->assign('chanpin',$chanpin);
        $this->assign('aaa',$aaa);
        return $this->fetch('lx/lx');
    }

}